<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <script>

        /**
         * es5原型继承
         * @constructor
         */

        function F() {

        }
        
        F.prototype.g = function () {
            
        }
        function G() {
            F.call(this)
        }
        function Fn() {

        }
        Fn.prototype = F.prototype
        G.prototype = new Fn()
        G.prototype.constructor = G


        /**
         * es6
         */

        class F{
            constructor(props) {

            }
            x(){}
        }

        class G extends F{
            constructor(props) {
                super(props);

            }

        }
    </script>
</body>
</html>